/**
 * File: VelvetRerunProcessor.java
 * Created by: mhaimel
 * Created on: Feb 4, 2011
 * CVS:  $Id: VelvetRerunProcessor.java 1.0 Feb 4, 2011 1:24:18 PM mhaimel Exp $
 */
package uk.ac.ebi.curtain.processor.velvet.impl;

import java.io.File;

import uk.ac.ebi.curtain.util.VelvetExec;
import uk.ac.ebi.curtain.utils.CurtainUncheckedException;
import uk.ac.ebi.velvet.processor.StatisticsInfo;

/**
 * @author mhaimel
 *
 */
public class VelvetRerunProcessor extends VelvetProcessor{
	
	@Override
	protected void _deleteDirectory(File dir) {
		// ignore
	}
	
	@Override
	public void createDirectory(File dir) {
		if(!dir.exists()){
			throw new CurtainUncheckedException("Directory expected for RERUN: " + dir);
		}
	}
	
	@Override
	public StatisticsInfo runVelvet(VelvetExec exec) {
		return exec.rerunVelvet();
	}
	
}
